﻿using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IServices.Productions
{
    public interface IProTemporaryWorkHoursServices
    {
        //根据条件查询数据
        public Task<IEnumerable<ProTemporaryWorkHours>> GetAsync(int PageIndex, int PageSize,string WorkhoursType, string Workhours, string WorkerName);

        public Task<int> GetCountAsync(string WorkhoursType,string Workhours, string WorkerName);

        //查询所有数据
        public Task<IEnumerable<ProTemporaryWorkHours>> GetAllAsync();


        //获取总工时
        public Task<string> GetWorkhours();


        //修改
        public Task<bool> UpdateAsync(ProTemporaryWorkHours model);

        //新增
        public Task<bool> AddAsync(ProTemporaryWorkHours model);



        public Task<bool> DeleteAsync(int[] Ids);
        public Task<bool> DeleteAsync(int Id);


        public Task<IEnumerable<Employees>> GetEmployeesAllAsync(string PersonCode, string Name);
    }


}
